package com.yunche.iov.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UpgradeLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UpgradeLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(Integer value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(Integer value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(Integer value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(Integer value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(Integer value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<Integer> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<Integer> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(Integer value1, Integer value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(Integer value1, Integer value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andDataStateIsNull() {
            addCriterion("data_state is null");
            return (Criteria) this;
        }

        public Criteria andDataStateIsNotNull() {
            addCriterion("data_state is not null");
            return (Criteria) this;
        }

        public Criteria andDataStateEqualTo(Byte value) {
            addCriterion("data_state =", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateNotEqualTo(Byte value) {
            addCriterion("data_state <>", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateGreaterThan(Byte value) {
            addCriterion("data_state >", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("data_state >=", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateLessThan(Byte value) {
            addCriterion("data_state <", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateLessThanOrEqualTo(Byte value) {
            addCriterion("data_state <=", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateIn(List<Byte> values) {
            addCriterion("data_state in", values, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateNotIn(List<Byte> values) {
            addCriterion("data_state not in", values, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateBetween(Byte value1, Byte value2) {
            addCriterion("data_state between", value1, value2, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateNotBetween(Byte value1, Byte value2) {
            addCriterion("data_state not between", value1, value2, "dataState");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeIsNull() {
            addCriterion("upgrade_type is null");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeIsNotNull() {
            addCriterion("upgrade_type is not null");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeEqualTo(Byte value) {
            addCriterion("upgrade_type =", value, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeNotEqualTo(Byte value) {
            addCriterion("upgrade_type <>", value, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeGreaterThan(Byte value) {
            addCriterion("upgrade_type >", value, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("upgrade_type >=", value, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeLessThan(Byte value) {
            addCriterion("upgrade_type <", value, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeLessThanOrEqualTo(Byte value) {
            addCriterion("upgrade_type <=", value, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeIn(List<Byte> values) {
            addCriterion("upgrade_type in", values, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeNotIn(List<Byte> values) {
            addCriterion("upgrade_type not in", values, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeBetween(Byte value1, Byte value2) {
            addCriterion("upgrade_type between", value1, value2, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andUpgradeTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("upgrade_type not between", value1, value2, "upgradeType");
            return (Criteria) this;
        }

        public Criteria andPlateNoIsNull() {
            addCriterion("plate_no is null");
            return (Criteria) this;
        }

        public Criteria andPlateNoIsNotNull() {
            addCriterion("plate_no is not null");
            return (Criteria) this;
        }

        public Criteria andPlateNoEqualTo(String value) {
            addCriterion("plate_no =", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotEqualTo(String value) {
            addCriterion("plate_no <>", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoGreaterThan(String value) {
            addCriterion("plate_no >", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoGreaterThanOrEqualTo(String value) {
            addCriterion("plate_no >=", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoLessThan(String value) {
            addCriterion("plate_no <", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoLessThanOrEqualTo(String value) {
            addCriterion("plate_no <=", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoLike(String value) {
            addCriterion("plate_no like", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotLike(String value) {
            addCriterion("plate_no not like", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoIn(List<String> values) {
            addCriterion("plate_no in", values, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotIn(List<String> values) {
            addCriterion("plate_no not in", values, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoBetween(String value1, String value2) {
            addCriterion("plate_no between", value1, value2, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotBetween(String value1, String value2) {
            addCriterion("plate_no not between", value1, value2, "plateNo");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNull() {
            addCriterion("device_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNotNull() {
            addCriterion("device_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdEqualTo(Integer value) {
            addCriterion("device_id =", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotEqualTo(Integer value) {
            addCriterion("device_id <>", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThan(Integer value) {
            addCriterion("device_id >", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_id >=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThan(Integer value) {
            addCriterion("device_id <", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThanOrEqualTo(Integer value) {
            addCriterion("device_id <=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIn(List<Integer> values) {
            addCriterion("device_id in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotIn(List<Integer> values) {
            addCriterion("device_id not in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdBetween(Integer value1, Integer value2) {
            addCriterion("device_id between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("device_id not between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNull() {
            addCriterion("vehicle_id is null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNotNull() {
            addCriterion("vehicle_id is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdEqualTo(Integer value) {
            addCriterion("vehicle_id =", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotEqualTo(Integer value) {
            addCriterion("vehicle_id <>", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThan(Integer value) {
            addCriterion("vehicle_id >", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vehicle_id >=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThan(Integer value) {
            addCriterion("vehicle_id <", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThanOrEqualTo(Integer value) {
            addCriterion("vehicle_id <=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIn(List<Integer> values) {
            addCriterion("vehicle_id in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotIn(List<Integer> values) {
            addCriterion("vehicle_id not in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdBetween(Integer value1, Integer value2) {
            addCriterion("vehicle_id between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vehicle_id not between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andDeviceNoIsNull() {
            addCriterion("device_no is null");
            return (Criteria) this;
        }

        public Criteria andDeviceNoIsNotNull() {
            addCriterion("device_no is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceNoEqualTo(String value) {
            addCriterion("device_no =", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotEqualTo(String value) {
            addCriterion("device_no <>", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoGreaterThan(String value) {
            addCriterion("device_no >", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoGreaterThanOrEqualTo(String value) {
            addCriterion("device_no >=", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoLessThan(String value) {
            addCriterion("device_no <", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoLessThanOrEqualTo(String value) {
            addCriterion("device_no <=", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoLike(String value) {
            addCriterion("device_no like", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotLike(String value) {
            addCriterion("device_no not like", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoIn(List<String> values) {
            addCriterion("device_no in", values, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotIn(List<String> values) {
            addCriterion("device_no not in", values, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoBetween(String value1, String value2) {
            addCriterion("device_no between", value1, value2, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotBetween(String value1, String value2) {
            addCriterion("device_no not between", value1, value2, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andOldVersionIsNull() {
            addCriterion("old_version is null");
            return (Criteria) this;
        }

        public Criteria andOldVersionIsNotNull() {
            addCriterion("old_version is not null");
            return (Criteria) this;
        }

        public Criteria andOldVersionEqualTo(String value) {
            addCriterion("old_version =", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionNotEqualTo(String value) {
            addCriterion("old_version <>", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionGreaterThan(String value) {
            addCriterion("old_version >", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionGreaterThanOrEqualTo(String value) {
            addCriterion("old_version >=", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionLessThan(String value) {
            addCriterion("old_version <", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionLessThanOrEqualTo(String value) {
            addCriterion("old_version <=", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionLike(String value) {
            addCriterion("old_version like", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionNotLike(String value) {
            addCriterion("old_version not like", value, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionIn(List<String> values) {
            addCriterion("old_version in", values, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionNotIn(List<String> values) {
            addCriterion("old_version not in", values, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionBetween(String value1, String value2) {
            addCriterion("old_version between", value1, value2, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andOldVersionNotBetween(String value1, String value2) {
            addCriterion("old_version not between", value1, value2, "oldVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionIsNull() {
            addCriterion("new_version is null");
            return (Criteria) this;
        }

        public Criteria andNewVersionIsNotNull() {
            addCriterion("new_version is not null");
            return (Criteria) this;
        }

        public Criteria andNewVersionEqualTo(String value) {
            addCriterion("new_version =", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionNotEqualTo(String value) {
            addCriterion("new_version <>", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionGreaterThan(String value) {
            addCriterion("new_version >", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionGreaterThanOrEqualTo(String value) {
            addCriterion("new_version >=", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionLessThan(String value) {
            addCriterion("new_version <", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionLessThanOrEqualTo(String value) {
            addCriterion("new_version <=", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionLike(String value) {
            addCriterion("new_version like", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionNotLike(String value) {
            addCriterion("new_version not like", value, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionIn(List<String> values) {
            addCriterion("new_version in", values, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionNotIn(List<String> values) {
            addCriterion("new_version not in", values, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionBetween(String value1, String value2) {
            addCriterion("new_version between", value1, value2, "newVersion");
            return (Criteria) this;
        }

        public Criteria andNewVersionNotBetween(String value1, String value2) {
            addCriterion("new_version not between", value1, value2, "newVersion");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeIsNull() {
            addCriterion("upgrade_mode is null");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeIsNotNull() {
            addCriterion("upgrade_mode is not null");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeEqualTo(Byte value) {
            addCriterion("upgrade_mode =", value, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeNotEqualTo(Byte value) {
            addCriterion("upgrade_mode <>", value, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeGreaterThan(Byte value) {
            addCriterion("upgrade_mode >", value, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeGreaterThanOrEqualTo(Byte value) {
            addCriterion("upgrade_mode >=", value, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeLessThan(Byte value) {
            addCriterion("upgrade_mode <", value, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeLessThanOrEqualTo(Byte value) {
            addCriterion("upgrade_mode <=", value, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeIn(List<Byte> values) {
            addCriterion("upgrade_mode in", values, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeNotIn(List<Byte> values) {
            addCriterion("upgrade_mode not in", values, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeBetween(Byte value1, Byte value2) {
            addCriterion("upgrade_mode between", value1, value2, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andUpgradeModeNotBetween(Byte value1, Byte value2) {
            addCriterion("upgrade_mode not between", value1, value2, "upgradeMode");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffIsNull() {
            addCriterion("is_turnoff is null");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffIsNotNull() {
            addCriterion("is_turnoff is not null");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffEqualTo(Byte value) {
            addCriterion("is_turnoff =", value, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffNotEqualTo(Byte value) {
            addCriterion("is_turnoff <>", value, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffGreaterThan(Byte value) {
            addCriterion("is_turnoff >", value, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_turnoff >=", value, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffLessThan(Byte value) {
            addCriterion("is_turnoff <", value, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffLessThanOrEqualTo(Byte value) {
            addCriterion("is_turnoff <=", value, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffIn(List<Byte> values) {
            addCriterion("is_turnoff in", values, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffNotIn(List<Byte> values) {
            addCriterion("is_turnoff not in", values, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffBetween(Byte value1, Byte value2) {
            addCriterion("is_turnoff between", value1, value2, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andIsTurnoffNotBetween(Byte value1, Byte value2) {
            addCriterion("is_turnoff not between", value1, value2, "isTurnoff");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesIsNull() {
            addCriterion("old_version_series is null");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesIsNotNull() {
            addCriterion("old_version_series is not null");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesEqualTo(String value) {
            addCriterion("old_version_series =", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesNotEqualTo(String value) {
            addCriterion("old_version_series <>", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesGreaterThan(String value) {
            addCriterion("old_version_series >", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesGreaterThanOrEqualTo(String value) {
            addCriterion("old_version_series >=", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesLessThan(String value) {
            addCriterion("old_version_series <", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesLessThanOrEqualTo(String value) {
            addCriterion("old_version_series <=", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesLike(String value) {
            addCriterion("old_version_series like", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesNotLike(String value) {
            addCriterion("old_version_series not like", value, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesIn(List<String> values) {
            addCriterion("old_version_series in", values, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesNotIn(List<String> values) {
            addCriterion("old_version_series not in", values, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesBetween(String value1, String value2) {
            addCriterion("old_version_series between", value1, value2, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andOldVersionSeriesNotBetween(String value1, String value2) {
            addCriterion("old_version_series not between", value1, value2, "oldVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesIsNull() {
            addCriterion("new_version_series is null");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesIsNotNull() {
            addCriterion("new_version_series is not null");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesEqualTo(String value) {
            addCriterion("new_version_series =", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesNotEqualTo(String value) {
            addCriterion("new_version_series <>", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesGreaterThan(String value) {
            addCriterion("new_version_series >", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesGreaterThanOrEqualTo(String value) {
            addCriterion("new_version_series >=", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesLessThan(String value) {
            addCriterion("new_version_series <", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesLessThanOrEqualTo(String value) {
            addCriterion("new_version_series <=", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesLike(String value) {
            addCriterion("new_version_series like", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesNotLike(String value) {
            addCriterion("new_version_series not like", value, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesIn(List<String> values) {
            addCriterion("new_version_series in", values, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesNotIn(List<String> values) {
            addCriterion("new_version_series not in", values, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesBetween(String value1, String value2) {
            addCriterion("new_version_series between", value1, value2, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andNewVersionSeriesNotBetween(String value1, String value2) {
            addCriterion("new_version_series not between", value1, value2, "newVersionSeries");
            return (Criteria) this;
        }

        public Criteria andVersionIdIsNull() {
            addCriterion("version_id is null");
            return (Criteria) this;
        }

        public Criteria andVersionIdIsNotNull() {
            addCriterion("version_id is not null");
            return (Criteria) this;
        }

        public Criteria andVersionIdEqualTo(Integer value) {
            addCriterion("version_id =", value, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdNotEqualTo(Integer value) {
            addCriterion("version_id <>", value, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdGreaterThan(Integer value) {
            addCriterion("version_id >", value, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("version_id >=", value, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdLessThan(Integer value) {
            addCriterion("version_id <", value, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdLessThanOrEqualTo(Integer value) {
            addCriterion("version_id <=", value, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdIn(List<Integer> values) {
            addCriterion("version_id in", values, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdNotIn(List<Integer> values) {
            addCriterion("version_id not in", values, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdBetween(Integer value1, Integer value2) {
            addCriterion("version_id between", value1, value2, "versionId");
            return (Criteria) this;
        }

        public Criteria andVersionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("version_id not between", value1, value2, "versionId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}